package com.xbongbong.pro.statistic.result.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * es查询
 * 包装int型agg和hits的total
 *
 * @author 徐俊杰
 * @version v1.0
 * @date 2019/6/26 17:25
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class TotalAndAggPojo {
    /**
     * 个数
     */
    private Integer total;
    /**
     * 某个字段求和的值
     */
    private Integer agg;

    public TotalAndAggPojo() {
        this.total = 0;
        this.agg = 0;
    }
}
